#ifndef __W5500APL_H
#define __W5500APL_H
#include "sys.h"
#include "wizchip_conf.h"
#include "w5500.h"
#include "socket.h"
#include "dhcp.h"
#include "spi.h"
#include "delay.h"
#include "usart.h"

/////////////////////////////////////////
// SOCKET NUMBER DEFINION for Examples //
/////////////////////////////////////////
#define SOCK_TCPS        0
#define SOCK_UDPS        1

////////////////////////////////////////////////
// Shared Buffer Definition for LOOPBACK TEST //
////////////////////////////////////////////////
#define DATA_BUF_SIZE   2048

void network_init(void);
void W5500_init(void);
int32_t loopback_udps(uint8_t sn, uint8_t* buf, uint16_t port);
int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port);
#endif

